<template>
  <div>
    <van-search
      v-model="value"
      show-action
      placeholder="请输入搜索关键词"
       background="#ff6700"
    >
      <template #action>
        <div @click="onSearch">搜索</div>
      </template>
    </van-search>
  </div>
</template>


<script>
export default {
  data() {
    return {
        value:''
    };
  },
  methods:{
    onSearch(){
      console.log(123);
    }
  }
};
</script>


<style scoped>
</style>